package com.efruit.authority;



import java.io.InputStream;
import java.util.Properties;

public class Config {
	private static Properties props = null;
	
	private synchronized static void loadProperties(){
		props = new Properties();
		try{
			InputStream input=Config.class.getResourceAsStream("FetcherConfig.properties");
			//System.out.println(input);
			props.load(input);
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	
	public static String getProperty(String propName){
		loadProperties();
		return props.getProperty(propName);
	}
}
